package share.seckill.module.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import share.seckill.module.domain.User;

@Mapper
public interface UserDao {

    @Select("select * from user where id = #{id}")
    public User getByUserId(@Param("id")int id);
    @Insert("insert into user(id,username,password) values(#{id},#{username},#{password})")
    public int insert(User user);
}
